package com.fabiohb.orcamento.model;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name = "orcamentoAnual")
@XmlType(propOrder = { "ano", "orcamentosMensais" })
public class OrcamentoAnual extends AbstractModel {

	@XmlElement(required = true, nillable = true)
	private Integer ano;

	@XmlElement(name = "orcamentoMensal")
	// @XmlElementWrapper(name = "orcamentosMensais")
	private List<OrcamentoMensal> orcamentosMensais = new ArrayList<OrcamentoMensal>(12);

	public Integer getAno() {
		return ano;
	}

	public void setAno(Integer ano) {
		this.ano = ano;
	}

	public List<OrcamentoMensal> getOrcamentosMensais() {
		return orcamentosMensais;
	}

	public void setOrcamentosMensais(List<OrcamentoMensal> orcamentosMensais) {
		this.orcamentosMensais = orcamentosMensais;
	}

}
